cmake_minimum_required(VERSION 3.10.2)

# 定义动画库

file(GLOB_RECURSE GIF_DIRECTORIES ${CMAKE_SOURCE_DIR}/giflib/*.*)

# 添加库
add_library(
        jni
        SHARED
        liblib.cpp
)

# MD5
add_library(
        sign
        SHARED
        md5/Sign.cpp
        md5/MD5.cpp
)

# 添加gifPlayer
add_library(
        gifplayer
        SHARED
        GifJni.cpp
        ${GIF_DIRECTORIES}
)

find_library(
        log-lib
        log)

target_link_libraries(
        jni
        gifplayer
        ${log-lib}
)

target_link_libraries(
        gifplayer
        android
        jnigraphics
        ${log-lib}
)


